package com.djj.nanny.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.djj.nanny.dto.UserPasswordUpdateDTO;
import com.djj.nanny.entity.User;

import java.util.List;

public interface UserService {
    User getUserById(Long id);

    Page<User> getUsersByPage(String name, String roleCode, Integer status, Integer currentPage, Integer size);

    void deleteUserById(Long id);

    void batchDeleteUsers(List<Long> ids);

    User login(String username, String password, String captcha, String captchaKey);

    void createUser(User user);

    void updateUser(User user);

    void updatePassword(Long id, UserPasswordUpdateDTO update);

    String resetPassword(Long id);
}
